import { createApp } from "vue";
import App from "./App.vue";
import "./css/index.css";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import router from "./router/index.js";
import store from "./store/index.js";
import "./css/height.css";
import axios from 'axios'
axios.interceptors.request.use((config) => {
  const tokenStr = window.sessionStorage.getItem("usertoken");
  if (tokenStr) {
    config.headers.token = tokenStr;
  }
  return config;
});

const app = createApp(App);
app.use(ElementPlus);
app.use(router);
app.use(store);
app.mount("#app");
